package com.demohomework.homeworkdemo.service;

import com.demohomework.homeworkdemo.pojo.Admin;

import java.util.List;


public interface AdminService {
    //根据用户名查询用户信息
    Admin findbyUsername(String username);

    //注册新用户
    void register(String username, String password);

    //更新用户信息
    void update(Admin admin);

    void updatePwd(String newPwd);

    List<Admin> list();

    void delete(Integer id);

    void add(Admin admin);
}
